package com.mall.product.domain.entity;

import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品自定义档案值对象 pro_custom_record_value
 *
 * @author zhonglin
 * @date 2020-05-07
 */
public class ProCustomRecordValue
    extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 商品自定义档案值id
   */
  private Long customRecordValueId;

  /**
   * 商品自定义档案id
   */
  @Excel(name = "商品自定义档案id")
  private Long customRecordId;

  /**
   * 名称
   */
  @Excel(name = "名称")
  private String name;

  /**
   * 状态（0正常 1停用）
   */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  /**
   * 删除标记（0代表存在 2代表删除）
   */
  private String delFlag;

  public void setCustomRecordValueId(Long customRecordValueId) {

    this.customRecordValueId = customRecordValueId;
  }

  public Long getCustomRecordValueId() {

    return customRecordValueId;
  }

  public void setCustomRecordId(Long customRecordId) {

    this.customRecordId = customRecordId;
  }

  public Long getCustomRecordId() {

    return customRecordId;
  }

  public void setName(String name) {

    this.name = name;
  }

  public String getName() {

    return name;
  }

  public void setStatus(String status) {

    this.status = status;
  }

  public String getStatus() {

    return status;
  }

  public void setDelFlag(String delFlag) {

    this.delFlag = delFlag;
  }

  public String getDelFlag() {

    return delFlag;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("customRecordValueId", getCustomRecordValueId())
                                                                    .append("customRecordId", getCustomRecordId())
                                                                    .append("name", getName())
                                                                    .append("status", getStatus())
                                                                    .append("delFlag", getDelFlag())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
